Skip to content

Support Snowflake oauth tokens#687

Merged
christierney merged 3 commits into
mainfrom
snowauth
Jul 1, 2025
Merged

Support Snowflake oauth tokens#687
christierney merged 3 commits into
mainfrom
snowauth

Conversation

@edavidaja

@edavidaja edavidaja commented Jun 26, 2025

Copy link
Copy Markdown
Collaborator

Intent

Add support for oauth authenticator

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

Snowflake CLI does not return the token in snow connection list when the oauth authenticator is in use.
Use the snowflake connector for python to obtain the parameters instead.

Automated Tests

updated existing.

Directions for Reviewers

on a workbench session with managed credentials enabled:

uvx --from 'git+https://github.com/posit-dev/rsconnect-python@snowauth[snowflake]' rsconnect details --server https://bf2oiaib-duloftf-posit-software-pbc-dev.snowflakecomputing.app/ --snowflake-connection-name workbench

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.

@edavidaja edavidaja requested a review from christierney June 26, 2025 21:27
@github-actions

github-actions Bot commented Jun 27, 2025

Copy link
Copy Markdown
PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-07-01 20:56 UTC

@github-actions

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5142 3992 78% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/api.py 77% 🟢
rsconnect/snowflake.py 86% 🟢
TOTAL 81% 🟢

updated for commit: 91e00e8 by action🐍

@christierney

Copy link
Copy Markdown
Collaborator

validation

Run on workbench:

$ uvx --from 'git+https://github.com/posit-dev/rsconnect-python@snowauth[snowflake]' rsconnect details --server https://bf2oiaib-duloftf-posit-software-pbc-dev.snowflakecomputing.app/ --snowflake-connection-name workbench
Validating server...    [OK]
    Posit Connect URL: https://bf2oiaib-duloftf-posit-software-pbc-dev.snowflakecomputing.app/
Gathering details...                             [OK]
    Posit Connect version: 2025.05.0
    Installed versions of Python:
        3.8.20
        3.9.20
        3.10.15
        3.11.10
        3.12.4
    APIs: allowed

Proving key pair auth still works (default is configured in my connections.toml):

$ uvx --from 'git+https://github.com/posit-dev/rsconnect-python@snowauth[snowflake]' rsconnect details --server https://bf2oiaib-duloftf-posit-software-pbc-dev.snowflakecomputing.app/ --snowflake-connection-name default
Validating server...    [OK]
    Posit Connect URL: https://bf2oiaib-duloftf-posit-software-pbc-dev.snowflakecomputing.app/
Gathering details...                             [OK]
    Posit Connect version: 2025.05.0
    Installed versions of Python:
        3.8.20
        3.9.20
        3.10.15
        3.11.10
        3.12.4
    APIs: allowed

@christierney christierney merged commit 7775740 into main Jul 1, 2025
15 checks passed
@christierney christierney deleted the snowauth branch July 1, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants